<template>
    <header id="header">
        <nav>
            <a class="logo" title="json.help">{ json.<span>help</span> }</a>
            <ul></ul>
        </nav>
        <div class="version">
            <span>Version 3.2.0</span>
            <span>idea &amp; design &amp; make:<a href="mailto:sinda@srcker.com">SINDA</a></span>
        </div>
    </header>
</template>

<script>
export default {
    name: "navigator"
};
</script>

<style lang="scss" scoped>
header {
    padding: 20px 30px;
    background: #111;
    display: flex;
    flex-direction: column;
    nav {
        flex: 1;
        display: flex;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba($color: #fff, $alpha: 0.05);
        a.logo {
            flex: 1;
            font-size: 30px;
            font-weight: 700;
            display: inline-block;
            color: #3fa9f5;
            span {
                color: rgba($color: #fff, $alpha: 0.9);
                display: inline-block;
            }
        }
        ul {
            flex: 4;
            text-align: right;
            margin: 0;
            padding: 10px 0;
            a {
                justify-content: center;
                display: inline-block;
                padding-left: 20px;
                color: #4a5560;
                font-size: 12px;
                text-decoration: none;
                font-weight: bold;
            }
        }
    }
    .version {
        display: flex;
        padding-top: 20px;
        color: #666;
        span:first-child {
            flex: 1;
            font-size: 12px;
        }
        span:last-child {
            flex: 1;
            text-align: right;
            font-size: 12px;
        }
        span a {
            color: inherit;
            text-decoration: none;
            display: inline-block;
            margin: 0 5px;
            border-bottom: 1px solid #ccc;
        }
    }
}

@media (prefers-color-scheme: light) {
    header{
        background: #fff;
        nav {
            border-bottom: 1px solid rgba($color: #000, $alpha: 0.05);
            a.logo {
                span {
                    color: rgba($color: #000, $alpha: 0.9);
                    display: inline-block;
                }
            }
        }
    }
}
</style>